    <div class="photos">
        {assign $pathMiniature = PHOTO_ANNONCE_PATH}
        {assign $path = PHOTO_ANNONCE_PATH}
        <input type="hidden" id='path_min' value="{$path}" />
        <input type="hidden" id="delImage" value="{$j_basepath}design/front/images/DeleteRed.png" />
        <input type="hidden" id="noImage" value="{$j_basepath}design/front/images/no_image.jpg" />
    	<div class="wrap">
        	<div class="p1">
                <input type="hidden" name="photo-annonce" value="{if isset($photoSrc)}{foreach $photoSrc as $key=>$item}{if (($key !=0) || (isset($fimage)))}{if ($key >0)},{/if}{$item->photo_name}{/if}{/foreach}{/if}" id="photo-annonce" />
            </div>
            
            <!--begin gallery-->
            <div style="position:relative; float:right; width:413px; height:347px; display:block; overflow:hidden;"> 
                <a class="showPP" style="cursor: pointer;position:relative;left:373px;" href="{if ($photo_princ != '')}{if (!isset($fimage))}{$pathMiniature}{/if}{/if}{$photo_princ}" rel="prettyPhoto[pp_gal]"><img  alt="" src="{$j_basepath}design/front/images/zoom.png" title="Zoom" /></a>
               <img id='ap_img' src="{if ($photo_princ != '')}{if (!isset($fimage))}{$pathMiniature}{/if}{$photo_princ}{else}{$j_basepath}design/front/images/no_image.jpg{/if}" width="413" />
               <div id="forPopUp"  style="display: none;">       
                   {if isset($photoSrc)}
                        {foreach $photoSrc as $key=>$item}
                            {if (($key !=0) || (isset($fimage)))}
                                <a href="{$pathMiniature}{$item->photo_name}" rel="prettyPhoto[pp_gal]" title="">
                                <img src="{$pathMiniature}{$item->photo_name}" width="60" height="60" alt="" /> </a>
                            {/if}
                        {/foreach}
                    {/if}
                </div>
            </div>
                <div class="infiniteCarousel">
                    <div class="wrapper">
                        <ul>
                            {if ($photo_princ != '')}
                                    <li>
                                            <img src="{if (!isset($fimage))}{$pathMiniature}{/if}{$photo_princ}"  class="photo_princ"  title="{$photo_princ}" width="84" />
                                    </li>
                                {/if}
                                {if isset($photoSrc)}
                                    {foreach $photoSrc as $key=>$item}
                                        {if (($key !=0) || (isset($fimage)))}
                                            <li>
                                                <img src="{$pathMiniature}{$item->photo_name}" title="{$pathMiniature}{$item->photo_name}" width="84" />
                                            </li>
                                        {/if}
                                        
                                    {/foreach}
                                {/if}
                        </ul>        
                    </div>
                </div>
                <!--end gallery-->
                
                <div class="clear">&nbsp;</div>
        </div>
    </div>